﻿using MediatR;
using SmartProduction.ErrorCode;

namespace SmartProduction.Write.API.Application.Commands.Work__CaigouOrderCommand
{
    /// <summary>
    /// 采购订单创建命令
    /// </summary>
    public class Work__CaigouOrderCreateCommand : IRequest<APIResult<object>>
    {
        /// <summary>
        /// 采购编码
        /// </summary>
        public string OrderCode { get; set; } 

        /// <summary>
        /// 采购主题
        /// </summary>
        public string OrderSubject { get; set; } // 新产品销售订单0051

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string CustomerName { get; set; } // 重要客户

        /// <summary>
        /// 采购日期
        /// </summary>
        public DateTime SalesDate { get; set; } // 2022-06-07

        /// <summary>
        /// 总金额
        /// </summary>
        public decimal TotalAmount { get; set; } // 50,000.00

        /// <summary>
        /// 已到票金额
        /// </summary>
        public decimal InvoicedAmount { get; set; } // 10,000.00

        /// <summary>
        /// 到票金额
        /// </summary>
        public decimal CurrentInvoiceAmount { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string SalesPerson { get; set; }

        /// <summary>
        /// 入库状态
        /// </summary>
        public string RukuStatu { get; set; } = "已完成入库";
    }
}
